package team1.project2.vmlogs;
import java.util.Date;


public class KernelMessage {
	/*
	 * 
	 * Nov 30 16:04:17 esx04 vmkernel: 28:02:20:33.356 cpu4:1586)StorageMonitor: 196: vmhba2:0:0:0 status = 0/7 0x0 0x0 0x0
	   Nov 30 16:04:17 = Date and time
       esx04 = server name
       vmkernel: = logging type
       28:02:20:33.356 = uptime of host (days:hours:minutes:seconds:milliseconds)
       cpu4: = cpu/core that trapped the message
       1586) = World ID or WID of process
       StorageMonitor: = Piece of code reporting message
       196: = line of code reporting the message
       vmhba2:0:0:0 status = 0/7 0x0 0x0 0x0 = message content
	 */
	
	 /**
	  * Not all vmkernel log messages appear exactly in this fashion. When a driver dumps its logging output to the vmkernel log, there is less uniform formatting involved:
		Nov 30 16:04:17 esx04 vmkernel: 28:02:20:33.356 cpu4:1720)<4>lpfc2:0749:FPe:Completed Abort Task Set Data: x0 x0 x128
		Nov 30 16:04:17 = Date and time
		esx04 = server name
		vmkernel: = logging type
		28:02:20:33.356 = host uptime
		cpu4: = cpu that trapped the message
		1720) = WID of process
		<4>lpfc2:0749:FPe:Completed Abort Task Set Data: x0 x0 x128 = driver logging (non-uniform)

	  */
	private Date dateTime;
	private String uptimeOfHost;//28:02:20:33.356 = uptime of host (days:hours:minutes:seconds:milliseconds)
	private String serverName;//
	private String serverId;
	private String cpuOrCoreName;//cpu4: = cpu/core that trapped the message
	private String wid;//cpu4: = cpu/core that trapped the message
	private String codeReportingMessage;//StorageMonitor: = Piece of code reporting message
	private String lineOfReportingMessage;//196: = line of code reporting the message
	private String messageContent;//vmhba2:0:0:0 status = 0/7 0x0 0x0 0x0 = message content
	public Date getDateTime() {
    	return this.dateTime;
    }
	public void setDateTime(Date dateTime) {
    	this.dateTime = dateTime;
    }
	public String getUptimeOfHost() {
    	return this.uptimeOfHost;
    }
	public void setUptimeOfHost(String uptimeOfHost) {
    	this.uptimeOfHost = uptimeOfHost;
    }
	public String getServerName() {
    	return this.serverName;
    }
	public void setServerName(String serverName) {
    	this.serverName = serverName;
    }
	public String getServerId() {
    	return this.serverId;
    }
	public void setServerId(String serverId) {
    	this.serverId = serverId;
    }
	public String getCpuOrCoreName() {
    	return this.cpuOrCoreName;
    }
	public void setCpuOrCoreName(String cpuOrCoreName) {
    	this.cpuOrCoreName = cpuOrCoreName;
    }
	public String getWid() {
    	return this.wid;
    }
	public void setWid(String wid) {
    	this.wid = wid;
    }
	public String getCodeReportingMessage() {
    	return this.codeReportingMessage;
    }
	public void setCodeReportingMessage(String codeReportingMessage) {
    	this.codeReportingMessage = codeReportingMessage;
    }
	public String getLineOfReportingMessage() {
    	return this.lineOfReportingMessage;
    }
	public void setLineOfReportingMessage(String lineOfReportingMessage) {
    	this.lineOfReportingMessage = lineOfReportingMessage;
    }
	public String getMessageContent() {
    	return this.messageContent;
    }
	public void setMessageContent(String messageContent) {
    	this.messageContent = messageContent;
    }
	@Override
    public String toString() {
	    return "KernelMessage [dateTime=" + this.dateTime + ", uptimeOfHost="
	            + this.uptimeOfHost + ", serverName=" + this.serverName
	            + ", serverId=" + this.serverId + ", cpuOrCoreName="
	            + this.cpuOrCoreName + ", wid=" + this.wid
	            + ", codeReportingMessage=" + this.codeReportingMessage
	            + ", lineOfReportingMessage=" + this.lineOfReportingMessage
	            + ", messageContent=" + this.messageContent + "]";
    }
	
	   
       
       
       
}
